    var configElementTypeProvider = (function () {
        return function (options) {

            var addElementTypes = function (context) {
                context.addPrintElementTypes(
                    "leftModule",
                    [
                        new hiprint.PrintElementTypeGroup("公共", [
                            { tid: 'companyName', title: '公司名称', field: 'companyName', data: '公司名称', type: 'text' , options: {"hideTitle": true}},
                        ]),
                        <?php echo $this->partial('admin/print-template/template/'.$this->templateCode.'.phtml'); ?>,
                        new hiprint.PrintElementTypeGroup("辅助", [
                            {
                                tid: 'hline',
                                title: '横线',
                                type: 'hline'
                            },
                            {
                                tid: 'vline',
                                title: '竖线',
                                type: 'vline'
                            },
                            {
                                tid: 'rect',
                                title: '矩形',
                                type: 'rect'
                            },
                            {
                                tid: 'oval',
                                title: '椭圆',
                                type: 'oval'
                            },
                            { tid: 'customText', title: '定义文本', customText: '定义文本', custom: true, type: 'text' },
                            { tid: 'customLongText', title: '定义多行文本', customLongText: '定义多行文本', custom: true, type: 'longText' }
                        ])
                    ]
                );
            };

            return {
                addElementTypes: addElementTypes
            };

        };
    })();